import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    account:1,
    resumeId:1,
    IsSeeker:true,
    recruitId:1,
    pageto:'职位浏览',
    mainform:'公司信息',
    companyAccount:1,
    companySeeker:false,
    expJob:'Java工程师'
  },
  getters: {
  },
  mutations: {
    changeExpJob(state,newJob){
      state.expJob=newJob
    },
    changeAccount(state,newAccount){
      state.account=newAccount
    },
    changeCompanyAccount(state,newAccount){
      state.companyAccount=newAccount
    },
    changeMainform(state,newMainform)
    {
        state.mainform=newMainform
    },
    changePageto(state,newPageto){
      state.pageto=newPageto
    },
    ChangeIsSeekerToCompany(state){
       state.IsSeeker = false;
    },
    changeCompanySeekertoTrue(state){
      state.companySeeker=true
    },
     changeCompanySeekertoFalse(state){
      state.companySeeker=false
    },
    ChangeIsCompanyToSeeker(state){
      state.IsSeeker = true;
    },
    updateRecruitId(state,newId)
    {
        state.recruitId=newId
    },
    changeResumeId(state,newId)
    {
        state.resumeId=newId
    }
  },
  actions: {
    
  },
  modules: {
  }
})
